﻿using System;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;


namespace StarWarsSagaCreator
{
    class MainWindow : Form
    {
        private PictureBox charPicture;
        private Form frmMain;
        private FortBox fortBox;
        private RefBox refBox;
        private WillBox willBox;
        private AbilityBox abilityBoxComplete;
        private PersonalData personalData;
        private PersonalData2 personalData2;
        private SpdAttFrcDes spdAttFrcDes;
        private Skills charSkills;
        private HitPoints hitPoints;
        private Condition condition;
     
        public MainWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Required designer variable.
        /// </summary>
        private IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            frmMain = new Form {AutoSize = true};
            frmMain.Closed += frmMain_Closed;

#region Variable Declarations
            charPicture = new PictureBox
            {
                Location = new Point(5, 5),
                Name = "charPicture",
                Size = new Size(135, 135),
                TabIndex = 2,
                TabStop = false
            };
            personalData = new PersonalData
            {
                Location = new Point(150, 5),
                Name = "personalData",
                Size = new Size(410, 103),
                TabStop = false,
                Text = "Personal Data"
            };
            abilityBoxComplete = new AbilityBox
            {
                TabStop = false,
                AutoSize = false,
                Name = "abilityBoxComplete",
                Location = new Point(0, 140),
                Size = new Size(140, 200)
            };

            spdAttFrcDes = new SpdAttFrcDes
            {
                Location = new Point(150, 107),
                Name = "groupBox2",
                Size = new Size(411, 33),
                TabStop = false

            };
            fortBox = new FortBox
                          { 
                AutoSize = false,
                Location = new Point(150, 140),
                Name = "fortBox",
                Size = new Size(410, 66),
                TabStop = false
            };
            refBox = new RefBox
            {
                AutoSize = false,
                Location = new Point(150, 206),
                Name = "refBox",
                Size = new Size(410, 66),
                TabStop = false
            };
            willBox = new WillBox
            {
                AutoSize = false,
                Location = new Point(150, 272),
                Name = "refBox",
                Size = new Size(410, 66),
                TabStop = false
            };
            personalData2 = new PersonalData2
                                {
                Location = new Point(565, 4),
                Name = "personalData2",
                Size = new Size(85, 136),
                TabIndex = 8,
                TabStop = false
            };
            charSkills = new Skills
            {
                Location = new Point(654, 4),
                Name = "charSkills",
                Size = new Size(510, 650),
                TabIndex = 7,
                TabStop = false
            };
            hitPoints = new HitPoints
            {
                Location = new Point(567, 140),
                Name = "HitPointGroup",
                Size = new Size(42, 197),
                TabIndex = 10,
                TabStop = false
            };
            condition = new Condition
            {
                Font = new Font("Microsoft Sans Serif", 6F, FontStyle.Regular, GraphicsUnit.Point, ((0))),
                Location = new Point(609, 140),
                Name = "Condition",
                Size = new Size(42, 197),
                TabIndex = 11,
                TabStop = false
            };
#endregion

#region Control.Adds
            frmMain.Controls.Add(personalData);
            frmMain.Controls.Add(spdAttFrcDes);
            frmMain.Controls.Add(charPicture);
            frmMain.Controls.Add(abilityBoxComplete);
            frmMain.Controls.Add(fortBox);
            frmMain.Controls.Add(refBox);
            frmMain.Controls.Add(willBox);
            frmMain.Controls.Add(personalData2);
            frmMain.Controls.Add(charSkills);
            frmMain.Controls.Add(hitPoints);
            frmMain.Controls.Add(condition);
            frmMain.Show();

#endregion
        }

        private void frmMain_Closed(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
